all: main client3
tcpserver:tcp_svr.cc
	g++ -o $@ $^ -std=c++11 -lpthread
server:server.cc
	g++ -o $@ $^ -std=c++11 -lpthread
client:tcp_cli.cc
	g++ -o $@ $^ -std=c++11 -lpthread
main:main.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g
client1:client1.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g
client2:client2.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g
client3:client3.cc
	g++ -o $@ $^ -std=c++11 -lpthread -g

.PHONY:clean
clean:
	rm -rf server
	rm -rf tcpserver
	rm -rf client